// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}
.el-table th{
  border-bottom: 1px solid #E1E3E6 !important;
}
.el-table th>.cell{
  height:28px;
  padding: 0 16px;
  line-height: 28px;
  color:#909399;
  font-size: 12px;
  background: #EDF1F7;
}
.el-table .cell{
  padding: 0 16px;
  color: #313233;
  font-size: 12px;
}
.el-table td{
  border-bottom: 1px solid #E1E3E6 !important;
}
.el-table--mini th, .el-table--mini td{
  padding: 0;
}
.el-button--text{
  font-size: 12px;
}
.el-select{
  width: 100%;
}
// .el-table{
//   .el-table__expanded-cell{
//     display:none !important;
//   }
// }
.el-pagination{
  .btn-prev, .btn-next {
    width: 30px !important;
    height: 30px !important;
    color: #626466;
    font-size: 10px;
    background-color: #fff !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
    border: 1px solid #d2d7db;
    &:hover{
      color: #3399ff;
    }
    &[disabled]{
      cursor: default;
      color: #c4c8cc;
    }
  }
  .el-pager{
    .number{
      width: 30px !important;
      height: 30px !important;
      color: #626466 !important;
      font-size: 10px;
      background-color: #fff !important;
      border-radius: 4px !important;
      margin: 0 4px !important;
      border: 1px solid #d2d7db;
      cursor: pointer;
      &:hover{
        color: #3399ff !important;
      }
    }
    .active{
      color: #3399ff !important;
    }
  }
}
.el-dialog{
  .el-dialog__header{
    padding: 0 16px;
    height: 48px;
    line-height: 48px;
    border-bottom: 1px solid #ebf0f5;
    .el-dialog__title{
      font-size: 16px;
    }
  }
  .el-dialog__headerbtn{
    top: 18px;
    font-size: 12px;
  }
  .el-dialog__body{
    padding: 8px 16px 16px 16px;
  }
  .el-dialog__footer{
    background: #F5F7FA;
  }
}
.right-side-dialog {
  .el-dialog {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    height: 100%;
    margin-top: 0!important;
    overflow-y: auto;
  }
}
.el-form{
  .el-form-item{
    input[type=text]{
      height: 30px;
      color: #313233;
      &::-webkit-input-placeholder { /* WebKit browsers */
        color: #babec2;
      }

      &::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: #babec2;
      }

      &:-ms-input-placeholder { /* Internet Explorer 10+ */
        color: #babec2;
      }
    }
    textarea{
      color: #313233;
      &::-webkit-input-placeholder { /* WebKit browsers */
        color: #babec2;
      }

      &::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: #babec2;
      }

      &:-ms-input-placeholder { /* Internet Explorer 10+ */
        color: #babec2;
      }
    }
    select{
      height: 30px !important;
      color: #313233;
      &::-webkit-input-placeholder { /* WebKit browsers */
        color: #babec2;
      }

      &::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: #babec2;
      }

      &:-ms-input-placeholder { /* Internet Explorer 10+ */
        color: #babec2;
      }
    }
    label{
      padding-right: 8px;
      color: #313233;
    }
    .el-radio{
      line-height: 22px;
      margin-right: 32px;
      color: #313233;
      .el-radio__input{
        .el-radio__inner{
          width: 20px;
          height: 20px;
        }
      }
    }
    .is-checked{
      color: #3399ff;
    }
  }
  .is-required{
    font-size: 14px;
    color: #f75a53;
  }
}
.el-form--inline{
  .el-form-item{
    margin-right: 24px;
  }
}
.el-dropdown-link {
  cursor: pointer;
  color: #3399ff;
  font-size: 14px;
}
// .el-icon-arrow-down {
//   font-size: 12px;
// }
.el-transfer{
  .el-transfer-panel{
    width: 290px;
    height: 320px;
    .el-transfer-panel__header{
      padding-left: 16px;
      height: 40px;
      line-height: 40px;
      .el-checkbox__label{
        font-size: 14px !important;
        color: #313233;
        span{
          font-size: 14px !important;
          color: #939699;
        }
      }
    }
    .el-transfer-panel__item{
      padding-left: 16px;
      font-size: 14px;
      color: #626466;
    }
  } 
  .el-transfer__buttons {
    padding: 0 10px;
    .el-transfer__button {
      display: block;
      border-radius: 50% !important;
      width: 34px !important;
      height: 34px;
      padding: 0;
      margin:0;
      background-color: #3399ff;
      color: #ffffff;
      border: 1px solid #3399ff;
      &:first-child{
        margin-bottom: 16px;
      }
    }
    .is-disabled{
      background-color: #f5f7fa;
      color: #c4c8cc;
      border: 1px solid #d7d9db;
    }
  }
}
.el-dialog .el-dialog__headerbtn {
  font-size: 18px;
  top: 14px;
}
.el-image-viewer__close {
  .el-icon-circle-close:before {
    color: #ffffff;
  }
}
.el-collapse{
  .el-collapse-item__header{
    padding-left: 16px;
    color: #313233;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #ebf0f5;
    background: #f0f5fa;
  } 
  .is-active{
    color: #3399ff;
    border-bottom: 1px solid #ffffff;
  }
  .el-collapse-item__wrap{
    padding: 0 16px;
    // border-bottom: none;
  }
  .el-collapse-item__content{
    padding-bottom: 16px;
    color: #939699;
  }
}
.el-tree{
  .el-tree-node__content{
    &:hover{
      background-color: #e5f0ff;
    }
  }
}
.el-transfer .el-transfer-panel .el-transfer-panel__item {
  display: inherit;
}
.right-side-dialog .dialog-fade-enter-active {
  animation: my-dialog-fade-in 0.3s!important;
}
.right-side-dialog .dialog-fade-leave-active {
  animation: my-dialog-fade-out 0.3s!important;
}
@keyframes my-dialog-fade-in {
  0% {
    transform: translate3d(100%, 0, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes my-dialog-fade-out {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(100%, 0, 0);
    opacity: 0;
  }
}

.common-filter {
  .el-icon-arrow-up {
    position: relative;
    top: 4px;
  }
  .is-reverse {
    top: -4px;
  }
}

.government-detail {
  .el-dialog .el-dialog__header {
    height: auto;
    line-height: auto;
  }
  .right-content {
    .el-card__body {
      padding: 10px;
      border: 1px solid rgba(215, 217, 219, 1);
      border-radius: 4px;
    }
    .el-timeline-item__tail {
      left: 5px;
      border-left: 1px dashed rgba(215, 217, 219, 1);
    }
    .el-timeline-item__content {
      padding-top: 40px;
    }
  }
}

.bigscreen-container {
  .el-progress-bar__outer {
    background: rgba(255, 255, 255, 0.1);
  }
  .el-scrollbar__wrap {
    overflow-x: hidden;
  }
  ::-webkit-scrollbar {
    display: none;
  }
  .small-scrollbar {
    overflow-y: scroll;
    scrollbar-color: transparent transparent;
    scrollbar-track-color: transparent;
    -ms-scrollbar-track-color: transparent;
    .el-scrollbar__wrap {
      margin-right: 0 !important;
    }
  }
}

.spp-drawer {
  .el-drawer__open .el-drawer.rtl {
    width: 720px !important;
  }
  .el-drawer__header {
    padding: 0 16px;
    height: 48px;
    line-height: 48px;
    margin-bottom: 0;
    color: #313233;
    font-size: 16px;
    border-bottom: 1px solid #ebf0f5;
  }
  .el-drawer__body {
    padding: 30px 40px 0 40px;
    margin-bottom: 50px;
    overflow-y: auto;
  }
}
.spp-child-drawer {
  .el-drawer__open .el-drawer.rtl {
    width: 480px !important;
  }
  .el-drawer__header {
    padding: 0 16px;
    height: 48px;
    line-height: 48px;
    margin-bottom: 0;
    color: #313233;
    font-size: 16px;
    border-bottom: 1px solid #ebf0f5;
  }
  :focus {
    outline: none;
  }
  .el-form .el-form-item label {
    text-align: left;
  }
  .el-drawer__body {
    padding: 20px 30px;
    margin-bottom: 50px;
    overflow-y: auto;
  }
}
.special-index {
  .el-tabs__header {
    margin: 0;
  }
  .el-tabs--card > .el-tabs__header {
    border-bottom: none;
  }
  .el-tab-pane {
    border: 1px solid #E1E3E6;
    padding-bottom: 10px;
  }
}